<script type="text/javascript"
	src="views/parkLotCenter/facilitiesManage/js/parkOrgequ_12.js"></script>
<script>
	var barrierGate = null;
	$(document).ready(function() {
		barrierGate = new barrierGateJs($("#barrierGateDiv"));
	});
</script>
<div id="barrierGateDiv" style="height:100%">
	<!---  start切换内容  --->
	<div class="basicInfoContent-panel"
		style="height:calc(100% - 65px);background: #f0f0f0;">
		<div class="basicInfo-box">
			<div class="list">
				<div class="list-text">
					<label>设备编号：</label> <input class="k-textbox input-info"
						type="text" disabled="disabled" id="oid" placeholder="系统自动生成..."
						data-bind="value:organizationCode" /> <input
						class="k-textbox input-info" type="hidden"
						data-bind="value:organizationTypeCode" /> <input
						class="k-textbox input-info" type="hidden"
						data-bind="value:orgLevel" /> <input class="k-textbox input-info"
						type="hidden" data-bind="value:parentCode" />
				</div>
				<div class="list-text">
					<label>设备名称：</label> <input class="k-textbox input-info"
						type="text" data-bind="value:organizationName"
						pattern="^[\u4E00-\u9FA5A-Za-z0-9]+$" validationMessage="检测到特殊字符" maxlength="31"
						required />
				</div>
				<div class="list-text">
					<label>设备类型：</label> <input type="text" style="width:250px"
						id="deviceType"
						data-bind="value:equipmentManagements_basic_deviceid" required>
				</div>
				<div class="list-text">
					<label>道闸类型：</label> <input style="width:250px" id="gateType"
						data-bind="value:equipmentManagements_basic_gateType"
						validationMessage="请选择道闸类型" required />
				</div>
				<div id="changeEquIp">
					<div class="list-text">
						<label>设备机号：</label> <input class="k-textbox input-info" type="text"
							data-bind="value:equipmentManagements_basic_deviceNumber"
							validationMessage="请输入1到99区间值" required pattern="^([1-9]\d{0}|[0-8]\d{1}|9[0-9])$"/>
					</div>
					<div class="list-text">
						<label>通讯IP：</label> <input class="k-textbox input-info"
							data-bind="value:equipmentManagements_basic_ip"
							validationMessage="请输入有效IP地址" required
							pattern="^((?:(?:25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))\.){3}(?:25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d))))$" />
					</div>
					<div class="list-text">
						<label>通讯端口：</label> <input class="k-textbox input-info" type="text"
							data-bind="value:equipmentManagements_basic_port"
							validationMessage="数据位范围1到65535区间" required pattern="(^[1-9]\d{0,3}$)|(^[1-5]\d{4}$)|(^6[0-4]\d{3}$)|(^65[0-4]\\d{2}$)|(^655[0-2]\d$)|(^6553[0-5]$)"/>
					</div>
				</div>
				<div id="changeEqubaudRate">
					<div class="list-text">
						<label>串口名称：</label> <input class="k-textbox input-info"
							type="text"
							data-bind="value:equipmentManagements_basic_SerialPoryName"
							validationMessage="请输入串口名称" required maxlength="11"/>
					</div>
					<div class="list-text">
						<label>串口波特率：</label> <input class="k-textbox input-info" type="text"
							data-bind="value:equipmentManagements_basic_baudRate"
							validationMessage="波特率范围在1200~11520之间" required pattern="^([2-9]\d{3}|\d{5}|1241\d{2}|12239\d{1}|120[0-9]|[0-0]\d{5}|1229\d{4}|11233\d{3}|115230\d{2}|11520[0-0])$"/>
					</div>
				</div>
				<div class="list-text">
					<label>数据位：</label> <input class="k-textbox input-info" type="text"
						data-bind="value:equipmentManagements_basic_dataBits"
						validationMessage="数据位范围含5到7区间" required pattern="^[5-7]\d{0,1}$"/>
				</div>
				<div class="list-text">
					<label>停止位：</label> <input class="k-textbox input-info" id="stopBit"
						data-bind="value:equipmentManagements_basic_stopBit"
						validationMessage="数据位范围含1到4区间" required pattern="^[1-4]\d{0,1}$"/>
				</div>
				<div class="list-text">
					<label>校验位：</label> <input class="input-info" id="checkDigit" style="width:250px"
						data-bind="value:equipmentManagements_basic_checkDigit"
						validationMessage="请选择校验位" required />
				</div>
				<div class="list-text">
					<label>上传道闸事件：</label>
					<div class="switch-button">
						<div class="checkbox">
							<input type="checkbox" id="uploadGateFlag"
								data-bind="value:equipmentManagements_basic_uploadGateFlag" />
							<label></label>
						</div>
					</div>
				</div>
				<div class="list-text">
					<label>备注：</label>
					<textarea class="k-textbox" rows="5" cols="93"
						style="width:650px;resize:none;"
						data-bind="value:equipmentManagements_basic_remark"></textarea>
				</div>
			</div>
		</div>
	</div>
	<div class="basicInfo-btn" style="border-top:1px solid #c5c5c5">
		<button class="save" data-bind="click:saveequOrg">确定</button> <button class="cancel"
			data-bind="click:cancel">取消</button>
	</div>
</div>